home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Updates / PowerPC / jpeg2ps / Makefile < prev    next >
Makefile  |  2000-05-16  |  2KB  |  69 lines

  1. # Makefile for jpeg2ps
  2. # (C) Thomas Merz 1994-1999
  3.  
  4. VERSION=1.8
  5. DIRNAME = jpeg2ps-$(VERSION)
  6. TARFILE = jpeg2ps-$(VERSION).tar
  7. ZIPFILE = jpeg2ps-$(VERSION).zip
  8.  
  9. # ----------------------------------------------------------------------------
  10. # Available compile time options:
  11. # -DKNR for Kernighan/Ritchie compilers
  12. # -DA4 gives A4 as default page size, omitting -DA4 gives U.S. letter format
  13. # -DDOS adds DOS and OS/2 support
  14.  
  15. # The following was reported to work for emx/gcc 0.9c fix04 under OS/2:
  16. # make -f Makefile "CCFLAGS=-c -DA4 -DDOS -O2" "LDFLAGS=-Zexe -s"
  17.  
  18. CC=gcc
  19. CCFLAGS= -c -DA4
  20. LD=gcc
  21. LDFLAGS=
  22. OBJ=o
  23. EXE=
  24. RM=rm -f
  25.  
  26. .c.$(OBJ) :
  27.     $(CC) $(CCFLAGS) $*.c
  28.  
  29. all:    jpeg2ps$(EXE)
  30.  
  31. # If your system doesn't have getopt(), add the supplied getopt.c
  32. # module below in the jpeg2ps line.
  33.  
  34. jpeg2ps$(EXE):    jpeg2ps.$(OBJ) readjpeg.$(OBJ) asc85ec.$(OBJ)
  35.     $(LD) $(LDFLAGS) -o jpeg2ps$(EXE) jpeg2ps.$(OBJ) readjpeg.$(OBJ) asc85ec.$(OBJ)
  36.  
  37. DISTFILES = jpeg2ps.c psimage.h readjpeg.c asc85ec.c getopt.c Makefile jpeg2ps.dsp jpeg2ps.txt descrip.mms
  38.  
  39. DOSDISTFILES = $(DISTFILES) jpeg2ps.exe
  40.  
  41. CONVFILES = jpeg2ps.c psimage.h readjpeg.c asc85ec.c getopt.c Makefile jpeg2ps.txt
  42.  
  43. dist:    $(DOSDISTFILES)
  44.     $(RM) $(ZIPFILE) $(TARFILE).gz;            \
  45.     ln -s . $(DIRNAME);                    \
  46.     lineend -d $(CONVFILES);             \
  47.     (for i in $(DOSDISTFILES); do                \
  48.         echo $$i;                    \
  49.     done) | sed "s;.*;$(DIRNAME)/&;" >distfiles;        \
  50.     zip -9 $(ZIPFILE) `cat distfiles`;            \
  51.     (for i in $(DISTFILES); do                \
  52.         echo $$i;                    \
  53.     done) | sed "s;.*;$(DIRNAME)/&;" >distfiles;        \
  54.     lineend -u $(CONVFILES);             \
  55.     tar cvf  $(TARFILE) `cat distfiles`;            \
  56.     gzip -9 $(TARFILE);                    \
  57.     $(RM) $(DIRNAME) distfiles;
  58.  
  59. clean:
  60.     $(RM) *.$(OBJ) jpeg2ps$(EXE) $(TARFILE) $(ZIPFILE)
  61.  
  62. jpeg2ps.$(OBJ):        jpeg2ps.c psimage.h
  63.  
  64. readjpeg.$(OBJ):    readjpeg.c psimage.h
  65.  
  66. asc85ec.$(OBJ):        asc85ec.c psimage.h
  67.  
  68. getopt.$(OBJ):        getopt.c
  69.